package vno.fux.character
{
	import flash.display.DisplayObject;
	
	import vno.fux.BaseDisplayObject;
	import vno.fux.BasePoint;
	import vno.fux.CompassDirection;
	
	public class MainPlayerLayer extends BaseDisplayObject
	{
		private var _mainPlayer:Player;
		public function MainPlayerLayer()
		{
			this.mouseEnabled = false;
		}
		public function changeDirection(direction:String):void
		{
			_mainPlayer.changeDirection(direction);
		}
		
		public function moveStateHandle(moveState:String):void
		{
			_mainPlayer.moveStateHandle(moveState);
		}
		
		public function set(id_:uint, resId_:uint, direction_:String):void
		{
			_mainPlayer = new Player({
				id					:id_,
				resId				:resId_,
				currentDirection	:direction_
			});
			this.content = _mainPlayer.view;
		}
	}
}